package com.动态加载.controller;



import com.动态加载.constat.GirlEnum;
import com.动态加载.service.GirlService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class GirlController{

    @Autowired
    private GirlService girlService;
    @GetMapping("/query")
    public String query(Integer girl){

        try {
            return girlService.query(girl);
        } catch (Exception e) {
            e.printStackTrace();
            return e.getMessage();
        }
    }
}